{% extends 'layout/header.html' %}

{% block body %}

    <h2>添加班级</h2>
    <form action="/login/" method="POST" novalidate>
        {% csrf_token %}
        <div class="form-group">
            <label for="{{ obj.title.id_for_label }}">{{ obj.title.label }}</label>
            <div class="row">
                <div class="col-xs-7">
                    {{ obj.title }}
                    <span class="error-msg">{{ obj.title.errors.0 }}</span>
                </div>
            </div>
        </div>
        <input type="submit" class="btn btn-default" value="添 加"/>
    </form>

{% endblock %}